-- GENERATED SPELL FOR [Bleeding Hollow Tormentor] --


function spell0_19424(pUnit, Event) --@Fear,n/a--
pUnit:FullCastSpellOnTarget(33924,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19424', 5500, 1)
end

function spell1_19424(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(31553,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19424', 10251, 1)
end

function spell2_19424(pUnit, Event) --@Mend Pet,Heal--
pUnit:FullCastSpellOnTarget(33976,pUnit)
pUnit:RegisterEvent('Sorts_19424', 10000, 1)
end

function spell3_19424(pUnit, Event) --@Summon Riding Worg,Self--
pUnit:FullCastSpellOnTarget(34368,pUnit)
pUnit:RegisterEvent('Sorts_19424', 553, 1)
end

function Sorts_19424(pUnit, Event)
local choix_sorts_19424 = math.random(0, 3)
if choix_sorts_19424 == 0 then
pUnit:RegisterEvent('spell0_19424', 1, 1)
end
if choix_sorts_19424 == 1 then
pUnit:RegisterEvent('spell1_19424', 1, 1)
end
if choix_sorts_19424 == 2 then
pUnit:RegisterEvent('spell2_19424', 1, 1)
end
if choix_sorts_19424 == 3 then
pUnit:RegisterEvent('spell3_19424', 1, 1)
end
end

function mob19424_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19424', math.random(1500, 3000), 1)
end

function mob19424_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19424_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19424_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19424, 1, 'mob19424_Action')
RegisterUnitEvent(19424, 2, 'mob19424_Leave')
RegisterUnitEvent(19424, 3, 'mob19424_Kill')
RegisterUnitEvent(19424, 4, 'mob19424_Die')
